package Singleton;

/**
 * Created with IntelliJ IDEA.
 * User: Bjarke
 * Date: 14-10-13
 * Time: 00:46
 * To change this template use File | Settings | File Templates.
 */
public class Singleton {
    private static Singleton instance = null;
    protected Singleton(){

    }

    public static Singleton getInstance(){
        if (instance == null){
            instance = new Singleton();
        }else System.out.println("An instance of the object already exists");

        return instance;
    }
}
